package wookee.basic;

import java.util.Scanner;

public class J05_Ex33_CardCheck {
	
	public static void main(String[] args) {
		
		Scanner sc = null;
		sc = new Scanner(System.in);
		
		System.out.println("카드 숫자 6자리 써");
		int a = sc.nextInt();
		
		System.out.print
		("신용카드 종류 : ");
		if( a < 400000 ){
			System.out.print("JCB카드 \t 은행정보 : ");
			switch(a){
			case 356317:
				System.out.println("NH농협카드");
				break;
			case 356901:
				System.out.println("신한카드");
				break;
			case 356912:
				System.out.println("KB국민카드");
				break;
			}
		}else if (a < 500000){
			System.out.print("비자카드 \t");
			switch(a){
			case 404825:
				System.out.println("비씨카드");
				break;
			case 438676:
				System.out.println("신한카드");
				break;
			case 457973:
				System.out.println("KB국민카드");
				break;
			}
		}else if (a < 600000){
			System.out.print("마스타카드, Maestro \t");
			switch(a){
			case 515594:
				System.out.println("신한카드");
				break;
			case 524353:
				System.out.println("외환카드");
				break;
			case 540926:
				System.out.println("KB국민카드");
				break;
			}
		}else {
			System.out.println("좋은 말로 할 때 제대로 써라");
		}
			
		
		
	}

}
